﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace sendfile_server
{
    class Program
    {
        static void Main(string[] args)
        {
            //if (args.Length < 1)
            //{
            //    Console.WriteLine("Run: Server <port>");
            //    Environment.Exit(-1);
            //}
            //SFServer server = new SFServer(Int32.Parse(args[0]));
            SFServer server = new SFServer(8080);
            server.Start();

            //sendfile_server_test.Test(Int32.Parse(args[0]));

            // testReaderThread();
            
            //SMessageUnitTest.TestConstrcutFromFields();
            //SMessageUnitTest.TestConstructFromBytes();
            //SMessageUnitTest.TestConstructFromBytesFail();

            // -- file data message testing
            //FileDataMessageUnitTest.TestConstructFromBinaryPacket();
            //FileDataMessageUnitTest.TestConstructFromFiels();

            // -- ping message
            //PingMsgUnitTest.TestConstruction();

            // -- connection test 
            //ReadThreadTest.TestListenThread();
            //SFConnectionUnitTest.TestConnection();
            //sfserverConn_test.TestSimple();
            //sfserverConn_test.TestByThreading();

            // -- trival test
            //enumTest.TestEnumToString();
        }


    }
}

